OPC Studio User's Guide and Reference
Create(Object,ElementPathSegment[]) Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.ComponentModel.Linking Namespace > LinkingTarget Class > Create Method : Create(Object,ElementPathSegment[]) Method
The target object to be linked.

The value of this parameter cannot be null (Nothing in Visual Basic).

The target path segments.

The value of this parameter cannot be null (Nothing in Visual Basic).

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

Creates a linking target based on given target path segments.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Overloads Shared Function Create( _
   ByVal targetObject As Object, _
   ByVal targetPathSegmentArray() As ElementPathSegment _
) As LinkingTarget
'Usage
 
Dim targetObject As Object
Dim targetPathSegmentArray() As ElementPathSegment
Dim value As LinkingTarget
 
value = LinkingTarget.Create(targetObject, targetPathSegmentArray)
[NotNull()]
public static LinkingTarget Create( 
   object targetObject,
   ElementPathSegment[] targetPathSegmentArray
)
[NotNull()]
public:
static LinkingTarget^ Create( 
   Object^ targetObject,
   array<ElementPathSegment^>^ targetPathSegmentArray
) 

Parameters

targetObject
The target object to be linked.

The value of this parameter cannot be null (Nothing in Visual Basic).

targetPathSegmentArray
The target path segments.

The value of this parameter cannot be null (Nothing in Visual Basic).

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

Return Value

The linking target that corresponds to given target path segments.

This method never returns null (Nothing in Visual Basic).

Exceptions
ExceptionDescription
Error related to the process of member linking.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also